package org.example;


import org.junit.Test;

/**
 * @author : liwq
 * @version : 1.0
 * @date : 2023/2/16
 **/
public class MyFunctionalTest {

    public Integer calValue(Integer i, MyFunctional myFunctional) {
        return myFunctional.calValue(i);
    }


    @Test
    public void getValue() {
        Integer a = 1;

        calValue(a, (i) -> {
            return i + 1;
        });

        System.out.println(a);
    }

    ;


}
